package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @OpenPeriod
 * @访客时段分布(open_period)
 * @version : Ver 1.0
 */
@TableName("open_period")
public class OpenPeriod implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:访客时段分布表id
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:该时段访客人数
	 * @字段:open_times BIGINT(19)
	 */
	private Long openTimes;


	/**
	 * @备注:24个时段（0 - 23）
	 * @字段:period INT(10)
	 */
	private Integer period;


	public OpenPeriod(){
	}

	public OpenPeriod(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setOpenTimes(Long openTimes) {
		this.openTimes = openTimes;
	}

	public Long getOpenTimes() {
		return this.openTimes;
	}


	public void setPeriod(Integer period) {
		this.period = period;
	}

	public Integer getPeriod() {
		return this.period;
	}
}
